//
//  HLLiveGiftSendRequest.m
//  YueYue
//
//  Created by hulu001 on 2024/3/14.
//

#import "HLLiveGiftSendRequest.h"

@implementation HLLiveGiftSendRequest
{
    NSDictionary *_params;
}

- (id)initWithParams:(NSDictionary *)params
{
    self = [super init];
    
    if (self) {
        _params = params;
    }
    
    return self;
}



- (NSString *)requestUrl
{
    return @"/send/gift/live";
    
}

- (YTKRequestMethod)requestMethod
{
    return YTKRequestMethodPOST;
}

- (id)requestArgument
{
    if (_params){
        return _params;
    } else {
        return @{};
    }
}


- (HLLiveGiftModel *)data
{
    NSDictionary *data =  self.result[@"data"];
    return [HLLiveGiftModel mj_objectWithKeyValues:data];
}
@end
